Skip to content

[Storage] Fixed IndexError in azure-storage-blob-changefeed when listing directory marker blobs#47555

Open
weirongw23-msft wants to merge 5 commits into
Azure:mainfrom
weirongw23-msft:weirongw23/fix-changefeed-directory-marker-paths
Open

[Storage] Fixed IndexError in azure-storage-blob-changefeed when listing directory marker blobs#47555
weirongw23-msft wants to merge 5 commits into
Azure:mainfrom
weirongw23-msft:weirongw23/fix-changefeed-directory-marker-paths

Conversation

@weirongw23-msft

Copy link
Copy Markdown
Member

No description provided.

@weirongw23-msft weirongw23-msft marked this pull request as ready for review June 18, 2026 11:09
Copilot AI review requested due to automatic review settings June 18, 2026 11:09
@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label Jun 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an IndexError in azure-storage-blob-changefeed encountered when listing change feed segments in accounts where the idx/segments/ hierarchy includes directory marker blobs, by adding validation to skip non-segment paths.

Changes:

  • Added segment-path validation to skip directory marker blobs when enumerating segment blobs.
  • Added a CHANGELOG entry documenting the bug fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed/_models.py Adds _is_valid_segment_path and uses it to filter out non-segment blob paths during segment listing.
sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md Documents the fix under the unreleased version’s “Bugs Fixed” section.

@weirongw23-msft

Copy link
Copy Markdown
Member Author

Tests are interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: ChangeFeedClient crashes with IndexError when encountering directory marker paths

3 participants